//package com.maoshi.shop.scoremall.api.listener;
//
//import cn.hutool.core.date.DateUtil;
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.maoshi.shop.bean.enums.ScoreRecordType;
//import com.maoshi.shop.bean.event.PaySuccessOrderEvent;
//import com.maoshi.shop.bean.model.OrderSettlement;
//import com.maoshi.shop.bean.order.PaySuccessOrderOrder;
//import com.maoshi.shop.bean.param.GrowthParamConfig;
//import com.maoshi.shop.common.config.Constant;
//import com.maoshi.shop.common.util.Arith;
//import com.maoshi.shop.scoremall.comment.dto.UserLevelDto;
//import com.maoshi.shop.scoremall.comment.model.UserGrowthLog;
//import com.maoshi.shop.scoremall.comment.model.UserScoreRecord;
//import com.maoshi.shop.scoremall.comment.service.UserScoreRecordService;
//import lombok.AllArgsConstructor;
//import org.springframework.context.event.EventListener;
//import org.springframework.core.annotation.Order;
//import org.springframework.stereotype.Component;
//
//import java.util.ArrayList;
//import java.util.List;
//
///**
// *  积分支付成功回调接口
// *
// * @author LHD
// * @date 2019/3/3
// **/
//@Component("scorePaySuccessListener")
//@AllArgsConstructor
//public class PaySuccessOrderListener {
//
//    private final UserScoreRecordService scoreRecordService;
//
//    /**
//     * 商品积分支付成功回调
//     */
//    @EventListener(PaySuccessOrderEvent.class)
//    @Order(PaySuccessOrderOrder.SCORE)
//    public void scorePaySuccessListener(PaySuccessOrderEvent event) {
//        String payNo = event.getPayNo();
//        Long addrOrderId = event.getOrders().get(0).getAddrOrderId();
//        scoreRecordService.paySuccess(payNo, addrOrderId);
//    }
//
//}
